const defaultWidth = 100
export const tableDefaultHeaders = [
  {
    name: '合同编号',
    key: 'contractNo',
    wid: defaultWidth
  },
  {
    name: '合同编号',
    key: 'debtId',
    wid: defaultWidth
  },
  {
    name: '项目名称',
    key: 'debtName',
    wid: defaultWidth
  },
  {
    name: '企业名称',
    key: 'enterpriseName',
    wid: defaultWidth
  },
  {
    name: '企业编号',
    key: 'enterpriseId',
    wid: defaultWidth
  },
  {
    name: '集团名称',
    key: 'corporationName',
    wid: defaultWidth
  },
  {
    name: '债务用途',
    key: 'debtUseDescr',
    wid: defaultWidth
  },
  {
    name: '债务性质',
    key: 'debtNatureDescr',
    wid: defaultWidth
  },
  {
    name: '债务类别',
    key: 'debtTypeDescr',
    wid: defaultWidth
  },
  {
    name: '债务兑付时间',
    key: 'repaymentTime',
    wid: 170
  },
  {
    name: '债务余额/万',
    key: 'debtBalance',
    wid: 150
  },
  {
    name: '债务本金总金额/万',
    key: 'totalPrincipal',
    wid: 150
  }
]
export const tableHeader1 = [
  {
    name: '审批状态',
    key: 'workflowStatusDescr',
    wid: defaultWidth
  },
  ...tableDefaultHeaders,
  {
    name: '操作',
    wid: 120,
    fixed: 'right',
    showTooltip: false,
    slotName: 'operate'
  }
]
export const tableHeader2 = [
  {
    name: '审批状态',
    key: 'workflowStatusDescr',
    wid: defaultWidth
  },
  {
    name: '审批结果',
    key: 'approveResultDescr',
    wid: defaultWidth
  },
  ...tableDefaultHeaders,
  {
    name: '审批人',
    key: 'approveByDescr',
    wid: defaultWidth
  },
  {
    name: '审批时间',
    key: 'approveTime',
    wid: 170
  },
  {
    name: '操作',
    wid: 120,
    fixed: 'right',
    showTooltip: false,
    slotName: 'operate'
  }
]
export const tableHeader3 = [
  {
    name: '集团名称',
    key: 'corporationName',
    wid: defaultWidth
  },
  {
    name: '本月集团待审核债务余额',
    key: 'unauditedTotalPrincipal',
    wid: 180
  },
  {
    name: '本月集团已审核债务余额',
    key: 'auditedTotalPrincipal',
    wid: 180
  },
  {
    name: '本月集团已申报债务余额',
    key: 'totalTotalPrincipal',
    wid: 180
  }
]
export const tableDetailHeader1 = [
  {
    name: '还息期次编号',
    key: 'periodId',
    wid: 140
  },
  {
    name: '计划日期',
    key: 'planDate',
    wid: 140
  },
  {
    name: '还款日期',
    key: 'actualDate',
    wid: 140
  },
  {
    name: '偿还利息',
    key: 'interest',
    wid: 140
  },
  {
    name: '实际还息',
    key: 'actual',
    wid: 140
  },
  {
    name: '已还状态',
    key: 'stateDescr',
    wid: 140
  }
]
export const tableDetailHeader2 = [
  {
    name: '还息期次编号',
    key: 'periodId',
    wid: 140
  },
  {
    name: '计划日期',
    key: 'planDate',
    wid: 140
  },
  {
    name: '还款日期',
    key: 'actualDate',
    wid: 140
  },
  {
    name: '偿还本金',
    key: 'principal',
    wid: 140
  },
  {
    name: '实际还本',
    key: 'actual',
    wid: 140
  },
  {
    name: '已还状态',
    key: 'stateDescr',
    wid: 140
  }
]
export const searchItem = [
  {
    name: '合同编号',
    key: 'contractNo'
  },
  {
    name: '项目名称',
    key: 'debtName'
  },
  {
    name: '企业名称',
    key: 'enterpriseName'
  },
  {
    name: '区域',
    key: 'areaCode'
  },
  {
    name: '放款/起息日期',
    key: 'loanTime',
    type: 'date',
    dateType: 'date',
    dateFormat: 'YYYY-MM-DD'
  },
  {
    name: '到期时间',
    key: 'expirationTime',
    type: 'date',
    dateType: 'date',
    dateFormat: 'YYYY-MM-DD'
  },
  {
    name: '兑付时间',
    key: 'repaymentTime',
    type: 'date',
    dateType: 'date',
    dateFormat: 'YYYY-MM-DD'
  },
  {
    name: '债务用途',
    key: 'debtUse',
    type: 'cascader',
    children: []
  },
  {
    name: '债务性质',
    key: 'debtNature',
    type: 'cascader',
    children: []
  },
  {
    name: '债务类别',
    key: 'debtType',
    type: 'cascader',
    children: []
  }
]
